<div class="admin-panel-wrap">
    <div class="icon32 icon-options-general">
        <br/>
    </div>
    <div class="admin-panel-wrap">
        <h2>LUN List</h2>
        <{if $execMessage}>
        <div id="execMessage" class="updated fade" style="background-color: rgb(255, 251, 204);">
            <{section name=line loop=$execMessage}>
            <p>
                <strong><{$execMessage[line]}></strong>
            </p>
            <{/section}>
        </div>
        <{else}>
        <{/if}>
        <form class="posts-filter" action="editlun" method="post" id="lun">
            <table class="widefat post fixed" cellspacing="0">
                <thead>
                    <tr>
                        <th class="manage-column column-title" style="" scope="col" width="35%">GUID</th>
			<th class="manage-column column-author" style="" scope="col">Data Size</th>
			<th class="manage-column column-author" style="" scope="col" width="30%">Source</th>
                        <th class="manage-column column-author" style="" scope="col"></th>
                        <th class="manage-column column-author" style="" scope="col"></th>
                    </tr>
	    	</thead>
		<tbody>
        		<{foreach from=$myArray item=row}>
			<tr>
				<{foreach from=$row item=col}>
				<td><{$col}></td>
				<{/foreach}>
				<td>
					<input class="button-secondary action doaction" type="submit" name = "<{$row[0]}>" value="Manage" />
	    			</td>
                                <td>
					<input class="button-secondary action doaction" type="submit" name = "<{$row[0]}>D" value="Delete" onclick="document.getElementById('lun').action='default'"/>
	    			</td>
			</tr>
			<{/foreach}>
		</tbody>
            </table>

        </form>
        <br/>
        <p>
            It's very Simple to use iSCSI by our openSMT. First, use a ZFS file system to create a LUN here. Then, Add view to it. <br/>
            Create a target if you do not have one in the target page. The setting is all over then.
        </p>
        <form action="createlun" method="post">
        <p class="submit">
            <input class="button-primary" type="submit" value="Add New LUN" name="addlun" />
        </p>
        </form>

    </div>
</div>
